import java.util.Arrays;

public class test {
    public static String myToString(int [] array) {
        String ret = "[";
        for (int i = 0; i < array.length ; i++) {
            ret = ret + array[i];
            if(i!=array.length-1) {
                ret = ret + ", ";
            }
        }
        ret = ret + "]";
        return ret;
    }

    public static void main(String[] args) {
        int [] array = new int []{1,2,3,4,5};
        String str = myToString(array);
        System.out.println(str);
        Arrays.
    }
}
